package subject

import (
	"github.com/gin-gonic/gin"
	"vrcm/src/vrcm/app/admin/apis/subject"
	"vrcm/src/vrcm/app/admin/router"
)

func init() {
	router.NoCheckRole = append(router.NoCheckRole, registerPaperRouter)
}

// registerPaperRouter
func registerPaperRouter(v1 *gin.RouterGroup) {
	api := apis.Paper{}
	r := v1.Group("/paper")
	{
		r.POST("get-list", api.GetPage)
		r.GET("/:id", api.Get)
		r.POST("/insert", api.Insert)
		r.PUT("/update", api.Update)
		r.PUT("/delete", api.Delete)
	}
}
